package day1801;

public class day180101_1 implements Runnable{
    static int piao =100;
    @Override
    public void run() {

            while(true){
                synchronized (this){
                    try {
                        Thread.sleep(100);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                if(piao>0){
                    System.out.println(Thread.currentThread().getName()+" "+piao--);
                }else{
                    return;
                }
        }

    }
}
}
